package cn.juque.systemservice.mapper;

import cn.juque.systemservice.domain.EmployeeRoleRelationDO;
import cn.juque.systemservice.entity.EmployeeRoleRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>员工角色关系</li>
 * </ul>
 * @date 2022-12-01 15:32:49
 **/
@Mapper
public interface EmployeeRoleRelationMapper extends BaseMapper<EmployeeRoleRelation> {

    /**
     * 分页查询
     *
     * @param page                 : page
     * @param employeeRoleRelation : employeeRoleRelation
     * @return List<EmployeeRoleRelation>
     */
    List<EmployeeRoleRelationDO> queryRoleRelationList(Page<EmployeeRoleRelationDO> page, @Param("ew") EmployeeRoleRelationDO employeeRoleRelation);

    /**
     * 查询
     *
     * @param employeeRoleRelation : employeeRoleRelation
     * @return List<EmployeeRoleRelation>
     */
    List<EmployeeRoleRelationDO> queryRoleRelationList(@Param("ew") EmployeeRoleRelationDO employeeRoleRelation);
}
